package de.bloxel.world;

import com.jme3.math.Vector3f;

/**
 * @author andreas
 * @since 0.1.0
 */
public class EmptyTerrainLoader implements TerrainLoader {

  /**
   * Each {@link TerrainElement} will have this size in x, y and z direction from the element center position.
   */
  private final Vector3f elementSize;

  /**
   * Use default element size of 0.5f in each direction.
   */
  public EmptyTerrainLoader() {
    this(Vector3f.UNIT_XYZ.mult(0.5f));
  }

  /**
   * @param theElementSize
   *          to use, each {@link TerrainElement} will have this size in x,y and z direction from the element center
   *          position
   */
  public EmptyTerrainLoader(final Vector3f theElementSize) {
    elementSize = theElementSize;
  }

  @Override
  public void fill(final TerrainChunk theTerrainChunk) {
  }

  @Override
  public Vector3f getElementSize() {
    return elementSize;
  }
}
